home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Utilities / MacDOS™ 2.0.0ƒ / batches / movedir.bat < prev    next >
Encoding:
DOS Batch File  |  1994-11-23  |  507 b   |  18 lines  |  [TEXT/mDOS]

  1. @echo off
  2. !  movedir.bat    Batch file to move a folder to another folder
  3. !
  4. !  movedir name [dest]
  5. !
  6. !  where 'name' is the folder to be cmoved and 'dest' is the folder which
  7. !  shall contain 'name'. Both names can be preceded by paths and volume IDs.
  8. !  If 'dest' is missing, the current directory is used as destination.
  9. !
  10. !  movedir.bat calls copydir and deldir
  11. !
  12. !  Copyright © 1994 by Rainbow Hill Pty Ltd. All rights reserved.
  13. !
  14.  
  15.     set doserr=0
  16.     call copydir "%1" "%2"
  17.     if %doserr% == 0 deldir "%1"
  18.